import http from '@/services/http';

export function getFilterList() {
  return http.get<Requestor.Response<Requestor.FilterResponse[]>>(
    '/api/admin/Inventory/inventory/filter/list',
  );
}
export function getList<T>(params: InventoryManagementApi.ListParams) {
  return http.post<Requestor.ListResponse<T>>('/api/admin/Inventory/inventory/list', {
    data: params,
  });
}

export function updateWarehouse(params: InventoryManagementApi.WarehouseParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/Inventory/inventory/warehouse', {
    data: params,
  });
}
export function updateShipment(params: InventoryManagementApi.ShipmentParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/Inventory/inventory/out/of/position', {
    data: params,
  });
}
